/**
 * 
 */
package org.vectrics.recruiter.struts.admin;

import javax.servlet.jsp.JspException;

import org.vectrics.provider.CoreServiceLocator;
import org.vectrics.struts.VectricsActionData;
import org.vectrics.struts.VectricsStrutsAction;

/**
 * @author pgoette
 *  Clase encargada de borrar la llamada telefonica.
 */
public class DeletePersonPhoneCallAction extends VectricsStrutsAction {

	/* (non-Javadoc)
	 * @see org.vectrics.struts.VectricsStrutsAction#doExecute(org.vectrics.struts.VectricsActionData)
	 */
	@Override
	protected String doExecute(VectricsActionData actionData)
			throws JspException {
		String communicationId = actionData.getRequest().getParameter("personCommunicationId");
		//String personId = actionData.getRequest().getParameter("personId");
		//actionData.getRequest().
		CoreServiceLocator.getPersonService().deleteCommunication(new Long(communicationId));
		return "success";
	}

}
